package com.sinven.service;

import java.util.Date;


import com.sinven.pojo.User;
import com.sinven.util.PageBean;

public interface UserService {
		boolean AddUser(User user) throws Exception;//添加用户
		boolean DeleteUser(int u_id) throws Exception;//删除用户
		boolean UpdateUser(User user) throws Exception;//修改用户
		boolean HTUpdateUser(User user) throws Exception;//修改用户
		boolean UpdateUserLock(Date date) throws Exception;//管理员修改用户
		User login(User user) throws Exception;//登录
		int CountUser() throws Exception;//查询普通用户总数
		User SelectUserById(int u_id) throws Exception;//按照用户id查询用户信息
		PageBean<User> SelectAll(int pageNum,int pageSize) throws Exception ;//查询所有的用户信息
		PageBean<User> SelectAllByType(String u_type,int pageNum,int pageSize) throws Exception ;//查询所有的用户信息
		boolean SelectByUname(String u_name) throws Exception;//根据用户名查询用户数量
		boolean UpdateUserState(int u_id,int u_state) throws Exception;//按照id改状态
}
 